﻿using EventBus2;
using System;

namespace EventBus2
{
    class Program
    {
        static void Main(string[] args)
        {

            SubscriberA suba = new SubscriberA();
            suba.Subscribe();
            PublisherA puba = new PublisherA();
            puba.Pub();


            SubscriberB subb = new SubscriberB();
            subb.Subscribe();
            //创建并发布事件
            EventBus.Default.Publish(new EventB() { EventName = "我是EventB" }
            , "Program"
            , new MyEventArgsA() { DateTime = DateTime.Now });
        }
    }
}
